UNIX component and script sample

The following example shows how to create a script and cabinet file to prepare a UNIX component for an IEAK package. Microsoft NetShow is used in this example.

  1. Download NetShow from the Microsoft NetShow Web site. The component is named ns325_solaris.gz.
  2. To install NetShow, create a script named netshow_install.sh. For the IEAK, the script must begin with #!/bin/sh.The script contains the following lines (comments are preceded by the # sign):


  3. #!/bin/sh

     

    cd $2

    # Argument $2 is the target location of the component ([install_dir]/[target]). Go to the location of the zip file.

    mkdir netshow

    # Create an installation directory.

    mv ns325_solaris.gz netshow

    # Move the zip file into that directory.

    cd netshow

    # Switch to that directory.

    gunzip ns325_solaris.gz

    # Unzip the component.

    chmod +x ns325_netshow

    # Assigns "execute permissions" to this file, so it can be run as a program.

    cd $1/bin

    # Argument $1 is the installation location. Switch to the Internet Explorer bin directory.

    ln -s ../netshow/ns325_solaris netshow

    # Create a link to the executable program.

  4. Test this script on the UNIX platform.
  5. Move the script and compressed component to the Windows 95 or Windows NT 4.0 computer where you plan to run the IEAK wizard.
  6. Create a cabinet file called netshow.cab. Use the following syntax:
  7. "cabarc n netshow.cab ns325_solaris.gz + netshow_install.sh"

  8. Start the IEAK wizard, and complete the steps for the UNIX platform until you reach the "Specify Custom Active Setup Components" screen in the wizard.
  9. Type the following information:
  10. Component
    NetShow

    Location
    The location of the Netshow.cab fileā€”for example, C:\Cabs\Netshow.cab

    Program
    netshow_install.sh

    Size
    The installed size of Netshow

  11. Complete all the steps in the IEAK wizard.

  12. When you run the wizard, it decompresses the cabinet file, runs the script, and installs your component before it customizes the browser.